import {ipc} from '@/utils/ipcRenderer'


export default {
    invoke(channel, data, params) {
        let sendData = {}
        if (data) {
            sendData.mainData = data
        }
        if (params) {
            sendData.params = params
        }
        return ipc.invoke(channel, JSON.stringify(sendData))
    }

}

